package com.guoguo.sincemusic.logic.netwrok.api

import com.guoguo.sincemusic.logic.InfoOne
import com.guoguo.sincemusic.logic.InfoTwo
import com.guoguo.sincemusic.logic.model.UserInfo
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * https://blog.csdn.net/vitaviva/article/details/104355264
 * @author GuoGuo
 * @date 2021/12/15
 */
interface UserService {

    // 登录接口
    @GET("/login/cellphone")
    fun login(
        @Query("phone") phone: String,
        @Query("md5_password") md5_password: String
    ): Call<UserInfo>

    // 数据接口1
    @GET("/get/info")
    fun refreshOne(
        @Query("phone") phone: String,
    ): Call<InfoOne>

    // 数据接口2
    @GET("/get/info")
    fun refreshTwo(
        @Query("phone") phone: String,
    ): Call<InfoTwo>
}